package com.huakang.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * asset
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Asset implements Serializable {
    private Integer aid;

    private Double regis;

    private String project;

    private Double afees;

    private Double stay;

    private Double medic;

    private Integer pid;

    private static final long serialVersionUID = 1L;

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Double getRegis() {
        return regis;
    }

    public void setRegis(Double regis) {
        this.regis = regis;
    }

    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public Double getAfees() {
        return afees;
    }

    public void setAfees(Double afees) {
        this.afees = afees;
    }

    public Double getStay() {
        return stay;
    }

    public void setStay(Double stay) {
        this.stay = stay;
    }

    public Double getMedic() {
        return medic;
    }

    public void setMedic(Double medic) {
        this.medic = medic;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Asset other = (Asset) that;
        return (this.getAid() == null ? other.getAid() == null : this.getAid().equals(other.getAid()))
            && (this.getRegis() == null ? other.getRegis() == null : this.getRegis().equals(other.getRegis()))
            && (this.getProject() == null ? other.getProject() == null : this.getProject().equals(other.getProject()))
            && (this.getAfees() == null ? other.getAfees() == null : this.getAfees().equals(other.getAfees()))
            && (this.getStay() == null ? other.getStay() == null : this.getStay().equals(other.getStay()))
            && (this.getMedic() == null ? other.getMedic() == null : this.getMedic().equals(other.getMedic()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAid() == null) ? 0 : getAid().hashCode());
        result = prime * result + ((getRegis() == null) ? 0 : getRegis().hashCode());
        result = prime * result + ((getProject() == null) ? 0 : getProject().hashCode());
        result = prime * result + ((getAfees() == null) ? 0 : getAfees().hashCode());
        result = prime * result + ((getStay() == null) ? 0 : getStay().hashCode());
        result = prime * result + ((getMedic() == null) ? 0 : getMedic().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", aid=").append(aid);
        sb.append(", regis=").append(regis);
        sb.append(", project=").append(project);
        sb.append(", afees=").append(afees);
        sb.append(", stay=").append(stay);
        sb.append(", medic=").append(medic);
        sb.append(", pid=").append(pid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}